<%-- 
    Document   : updateSubject
    Created on : Oct 29, 2009, 5:20:56 AM
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.sql.*" %>
<%
    int id = Integer.parseInt(request.getParameter("id"));
%>

<jsp:useBean id="ObjectAdmin" class="DAO.DAOAdmin" scope="page" />
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%
            ResultSet rs = ObjectAdmin.selectSubject(id);
            if(rs.next())
                {
        %>
        <form action="include/actionUpdateSubject.jsp?id=<%=id%>" method="post" >
            Update Subject : <input type="text" name="SubjectName" value="<%=rs.getString("SubjectName")%>" />
            <input type="submit" value="Update" />
        </form>
            <% } %>
    </body>

</html>
